package view.ui
{
	import flash.display.Bitmap;
	import flash.display.Sprite;
	public class PngBt extends Sprite
	{
		[Embed(source="asset/start.png")]
		private var _start_jpg:Class;
		private var start_jpg:Bitmap;
		
		
		[Embed(source="asset/cancel.png")]
		private var _cancel_jpg:Class;
		private var cancel_jpg:Bitmap;
		
		
		[Embed(source="asset/re-election.png")]
		private var _reelection_jpg:Class;
		private var reelection_jpg:Bitmap;
		
		[Embed(source="asset/choseExport.png")]
		private var _choseExport_jpg:Class;
		private var choseExport_jpg:Bitmap;
		
		[Embed(source="asset/choseHandle.png")]
		private var _choseHandle_jpg:Class;
		private var choseHandle_jpg:Bitmap;
		public function PngBt(value:String)
		{
			super();
			switch(value)
			{
				case "start":
					start_jpg=new _start_jpg() as Bitmap;
					start_jpg.smoothing=true;
					this.addChild(start_jpg);
					break;
				case "cancel":
					cancel_jpg=new _cancel_jpg() as Bitmap;
					cancel_jpg.smoothing=true;
					this.addChild(cancel_jpg);
					break;
				case "re":
					reelection_jpg=new _reelection_jpg() as Bitmap;
					reelection_jpg.smoothing=true;
					this.addChild(reelection_jpg);
					break;
				case "export":
					choseExport_jpg=new _choseExport_jpg() as Bitmap;
					choseExport_jpg.smoothing=true;
					this.addChild(choseExport_jpg);
					break;
				case "handle":
					choseHandle_jpg=new _choseHandle_jpg() as Bitmap;
					choseHandle_jpg.smoothing=true;
					this.addChild(choseHandle_jpg);
					break;
				
			}
		}
	}
}